$(document).ready(function(){

			//任务分派成功返回响应（hmk）
			$("#btbackID").click(function() {
				window.close();
				//$("#main", window.parent.document).attr("src","/ag/zhh/zhhaddtask.jsp");
					
			});
			
			
			var strhtml = "";
			// 获取保存ID的cookie
			var cookie = $.cookie('newtaskids');
			if (cookie != null) {
				//分离cookie字符串
				var ids = cookie.split("+");
				//var arr = $.makeArray(ids);  //这样也可以
				//遍历该字符串，获得任务ID
				$.each(ids, function(i, n) {
							strhtml = strhtml + "<tr><td class='newid2'>" + n
									+ "</td></tr>";
						});
				$("#tbnewid").append(strhtml);
			}
			//使cookie失效
			$.cookie('newtaskids', null);
			return false;
});

function addSuccMsg() {

}